<extend name="base" />
<block name="meau">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="__URL__/allUser">全部用户管理</a></li>
            <li><a href="__URL__/systemUser">系统用户管理</a></li>
            <li><a href="__URL__/unitUser">单位用户设置</a></li>
            <li><a href="__URL__/userControl">用户操作记录</a></li>
            <if condition="$superadmin">
                <li><a href='<{:U("Home/Rbac/index")}>'>系统权限管理</a></li>
            </if>
          </ul>
        </div>
</block>
<block name="content">
  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">           
    <h2 class="sub-header">全部用户列表</h2>
          <div class="table-responsive">
            <table class="table table-striped table-bordered table-condensed">
             <thead>
                <tr>
                  <th>工号</th>
                  <th>账号</th>
                  <th>姓名</th>
                  <th>电话号码</th>
                  <th>身份证号</th>
                  <th>所属单位与职位</th>
                  <th>备注</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <foreach name="infoData" item="vo">
              <tr>
                <td><{$vo.work_id}></td>
                <td><{$vo.user_name}></td>
                <td><{$vo.true_name}></td>
                <td><{$vo.phone_num}></td>
                <td><{$vo.id_num}></td>
                <td><{$vo.company}>-<{$vo.depart}>-<{$vo.position}></td>
                <td><{$vo.remark}></td> 
              <td>
                <div class="btn-group btn-group-xs" role="group" aria-label="...">
                     <button type="button" class="btn btn-default" name="delete" onclick="if(confirm('确定删除吗?')){
                            return true;}return false;
                      ">
                     <a href='<{:U("Home/User/infoDelete",array("id"=>$vo["uid"]))}>'>删除</a></button>
                     <button type="button" class="btn btn-default" name="set">
                     <a href='<{:U("Home/User/InfoMod",array("id"=>$vo["uid"]))}>'>设置</a></button>
                </div>
              </td>        
            </tr>
          </foreach>
          <if condition="$count gt $listRows">
             <tr><td colspan="7"><{$show}></td></tr>
          </if>     
        </tbody>
      </table> 
    </div>
  </div>
</block>